-- GENERATED SPELL FOR [Shade of Arugal] --


function spell0_27018(pUnit, Event) --@Phase Out,n/a--
pUnit:FullCastSpellOnTarget(53052,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27018', 20297, 1)
end

function spell1_27018(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(53086,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27018', 2000, 1)
end

function spell2_27018(pUnit, Event) --@Worgen\'s Command,n/a--
pUnit:FullCastSpellOnTarget(53070,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27018', 20345, 1)
end

function Sorts_27018(pUnit, Event)
local choix_sorts_27018 = math.random(0, 2)
if choix_sorts_27018 == 0 then
pUnit:RegisterEvent('spell0_27018', 1, 1)
end
if choix_sorts_27018 == 1 then
pUnit:RegisterEvent('spell1_27018', 1, 1)
end
if choix_sorts_27018 == 2 then
pUnit:RegisterEvent('spell2_27018', 1, 1)
end
end

function mob27018_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27018', math.random(1500, 3000), 1)
end

function mob27018_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27018_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27018_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27018, 1, 'mob27018_Action')
RegisterUnitEvent(27018, 2, 'mob27018_Leave')
RegisterUnitEvent(27018, 3, 'mob27018_Kill')
RegisterUnitEvent(27018, 4, 'mob27018_Die')
